package com.loyin.model;

import com.et.ar.ActiveRecordBase;
import com.et.ar.annotations.Column;
import com.et.ar.annotations.HasOne;
import com.et.ar.annotations.Id;
import com.et.ar.annotations.Table;
/**
 * 信息
 * @author 刘声凤
 * 2011-11-11
 */
@Table(name="igs_msg")
public class MsgInfo extends ActiveRecordBase {
	@Id
	public Long id;
//	@HasOne(foreignKey="userid")
//	public UserInfo userinfo;
	
	@Column
	public Integer userid;
	@Column
	public String title;
	@Column
	public String content;
	/**发送时间*/
	@Column
	public String sendtime;
	/**是否发送（短信或email）*/
	@Column
	public Integer send;
	/**发送类型 0email 1 短信 2 站内信息*/
	@Column
	public Integer sendtype;
	/**是否已经查看*/
	@Column
	public Integer looked;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
//	public UserInfo getUserinfo() {
//		return userinfo;
//	}
//	public void setUserinfo(UserInfo userinfo) {
//		this.userinfo = userinfo;
//	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getSendtime() {
		return sendtime;
	}
	public void setSendtime(String sendtime) {
		this.sendtime = sendtime;
	}
	public Integer getSend() {
		return send;
	}
	public void setSend(Integer send) {
		this.send = send;
	}
	public Integer getSendtype() {
		return sendtype;
	}
	public void setSendtype(Integer sendtype) {
		this.sendtype = sendtype;
	}
	public Integer getLooked() {
		return looked;
	}
	public void setLooked(Integer looked) {
		this.looked = looked;
	}
	public Integer getUserid()
	{
		return userid;
	}
	public void setUserid(Integer userid)
	{
		this.userid = userid;
	}
}
